package com.micro.app.vo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

/**
 * @author pan.shun
 * @since 2022/7/18 17:09
 */
@Data
@Document(indexName = "app_info_index", type = "app_info")
public class AppInfoVo implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    private Integer id;

    @Field(type = FieldType.Keyword)
    private String appName;

    @Field(type = FieldType.Date)
    private Date createTime;

    @Field(type = FieldType.Integer)
    private Integer recordCount;

}
